package com.sharing.mapper;

import com.sharing.domain.Hobby;
import com.sharing.domain.ProductionHobby;
import com.sharing.domain.dto.ProductionDto;
import com.sharing.domain.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/3 10:42
 */
@Mapper
public interface ProductionHobbyMapper {
    List<Hobby> selectHobbyByProductionId(Integer productionId);

    Integer selectHobbyNumByProductionId(Integer productionId, Integer level);

    List<Integer> selectHobbyIdsByUserId(Integer productionId, Integer level, Integer page, Integer size);

    Integer selectProductionDtosNumByHobbyIds(List<Integer> hobbyIds);

    List<ProductionDto> selectProductionDtosByHobbyIds(List<Integer> hobbyIds, Integer page, Integer size);

    Integer insertHobby(ProductionHobby productionHobby);

    Integer deleteHobbyByProductionIdAndHobbyIds(List<Integer> hobbyIds, Integer productionId);
}